package com.example.wisdomclassroomapi.domain.service;

import com.example.wisdomclassroomapi.domain.entity.AuthUserEntity;
import com.example.wisdomclassroomapi.domain.repository.AuthUserRepository;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
 * @Package: com.example.wisdomclassroomapi.domain.service
 * @Description: <>
 * @Author: scholes
 * @CreateDate: 2022-04-18
 * @UpdateUser: scholes
 * @UpdateDate: 2022-04-18
 * @UpdateRemark: <>
 * @Version: 1.0
 */
@Service
public class AuthUserDomainService {
@Resource
private AuthUserRepository authUserRepository;

public void add(AuthUserEntity entity) {
    authUserRepository.add(entity);
        }

public AuthUserEntity findById(String id) {
        return authUserRepository.findById(id);
        }

public int updateById(AuthUserEntity entity) {
        return authUserRepository.updateById(entity);
        }

public int deleteById(String id) {
        return authUserRepository.deleteById(id);
        }

public IPage<AuthUserEntity> page(AuthUserEntity entity,IPage page) {
        return authUserRepository.page(entity,page);
        }

public List<AuthUserEntity> list(AuthUserEntity entity) {
        return authUserRepository.list(entity);
        }

}